package com.ruoyi.basic.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 考勤记录对象 kaoqin_list
 *
 * @author hyh
 * @date 2021-04-13
 */
public class KaoqinList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    /**用戶名*/
    private String username;

    /** 记录id */
    private Long id;

    /** 记录编号 */
    @Excel(name = "记录编号")
    private Long code;

    /** 班级编号 */
    @Excel(name = "班级编号")
    private String classcode;

    /** 考勤地点 */
    @Excel(name = "考勤地点")
    private String addressid;

    /** 教师号 */
    @Excel(name = "教师号")
    private String tno;

    /** 教师姓名 */
    @Excel(name = "教师姓名")
    private String tname;

    /** 学号 */
    @Excel(name = "学号")
    private String sno;

    /** 学生姓名 */
    @Excel(name = "学生姓名")
    private String sname;

    /** 考勤开始时间 */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @Excel(name = "考勤开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date starttime;

    /** 考勤结束时间 */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @Excel(name = "考勤结束时间", width = 30,dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endtime;

    /** 班级名称 */
    @Excel(name = "班级名称")
    private String classname;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCode(Long code)
    {
        this.code = code;
    }

    public Long getCode()
    {
        return code;
    }
    public void setClasscode(String classcode)
    {
        this.classcode = classcode;
    }

    public String getClasscode()
    {
        return classcode;
    }
    public void setAddressid(String addressid)
    {
        this.addressid = addressid;
    }

    public String getAddressid()
    {
        return addressid;
    }
    public void setTno(String tno)
    {
        this.tno = tno;
    }

    public String getTno()
    {
        return tno;
    }
    public void setTname(String tname)
    {
        this.tname = tname;
    }

    public String getTname()
    {
        return tname;
    }
    public void setSno(String sno)
    {
        this.sno = sno;
    }

    public String getSno()
    {
        return sno;
    }
    public void setSname(String sname)
    {
        this.sname = sname;
    }

    public String getSname()
    {
        return sname;
    }
    public void setStarttime(Date starttime)
    {
        this.starttime = starttime;
    }

    public Date getStarttime()
    {
        return starttime;
    }
    public void setEndtime(Date endtime)
    {
        this.endtime = endtime;
    }

    public Date getEndtime()
    {
        return endtime;
    }
    public void setClassname(String classname)
    {
        this.classname = classname;
    }

    public String getClassname()
    {
        return classname;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("classcode", getClasscode())
                .append("addressid", getAddressid())
                .append("tno", getTno())
                .append("tname", getTname())
                .append("sno", getSno())
                .append("sname", getSname())
                .append("starttime", getStarttime())
                .append("endtime", getEndtime())
                .append("classname", getClassname())
                .append("status", getStatus())
                .toString();
    }
}